home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 December / CHIPNET Aralık 1997.iso / linux / redhat / misc / src / install / pkgs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-11  |  1.1 KB  |  48 lines

  1. #ifndef H_PKGS
  2. #define H_PKGS
  3.  
  4. #include <rpmlib.h>
  5.  
  6. struct packageInfo {
  7.     Header h;
  8.     char * name, * group;
  9.     char selected;
  10.     char inmenu;
  11.     int size;
  12.     void * data;    /* this points to different things for different */
  13.             /* install methods */
  14. } ;
  15.  
  16. struct pkgSet {
  17.     struct packageInfo ** packages;
  18.     int numPackages;
  19. };
  20.  
  21. struct component {
  22.     char * name;
  23.     int selected;
  24.     int inmenu;
  25.     struct pkgSet ps;
  26. };
  27.  
  28. struct componentSet {
  29.     struct component * comps;
  30.     struct component * preskel, * base;
  31.     int numComponents;
  32. } ;
  33.  
  34. int psVerifyDependencies(struct pkgSet * psp, int fixup);
  35. int psUsingDirectory(char * dir, struct pkgSet * psp);
  36. int psFromHeaderListDesc(int fd, struct pkgSet * psp, int noSeek);
  37. int psFromHeaderListFile(char * file, struct pkgSet * psp);
  38. int psSelectPackages(struct pkgSet * psp, struct componentSet * csp,
  39.              int goForward, int isUpgrade);
  40. int psReadComponentsFile(char * filespec, struct pkgSet * psp, 
  41.              struct componentSet * csp);
  42. void psFreeComponentSet(struct componentSet * csp);
  43.  
  44. /* upgrade code uses this for bsearch */
  45. int pkgCompare(void * first, void * second);
  46.  
  47. #endif
  48.